package cc.comac.mom.entity;


import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import cc.comac.mom.entity.base.BaseResultEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
@TableName("quality_asr_features")
@Data
@EqualsAndHashCode(callSuper=true)
public class QualityAsrFeaturesEntity extends BaseResultEntity implements Serializable{
	private static final long serialVersionUID = 1L;
	@TableField(value = "asr_features_id")
	@TableId(value = "asr_features_id",type=IdType.INPUT)
	private long id;
	private String partNumber;
	private String features;
	private String size;
	private String initialReliabilityValue;
	private String grade;
	private String featuresCount;
	private String Field1;
	private String Field2;
	private String Field3;
	private String Field4;
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		QualityAsrFeaturesEntity other = (QualityAsrFeaturesEntity) obj;
		if (features == null) {
			if (other.features != null)
				return false;
		} else if (!features.equals(other.features))
			return false;
		if (featuresCount == null) {
			if (other.featuresCount != null)
				return false;
		} else if (!featuresCount.equals(other.featuresCount))
			return false;
		if (grade == null) {
			if (other.grade != null)
				return false;
		} else if (!grade.equals(other.grade))
			return false;
		if (initialReliabilityValue == null) {
			if (other.initialReliabilityValue != null)
				return false;
		} else if (!initialReliabilityValue.equals(other.initialReliabilityValue))
			return false;
		if (partNumber == null) {
			if (other.partNumber != null)
				return false;
		} else if (!partNumber.equals(other.partNumber))
			return false;
		if (size == null) {
			if (other.size != null)
				return false;
		} else if (!size.equals(other.size))
			return false;
		return true;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((features == null) ? 0 : features.hashCode());
		result = prime * result + ((featuresCount == null) ? 0 : featuresCount.hashCode());
		result = prime * result + ((grade == null) ? 0 : grade.hashCode());
		result = prime * result + ((initialReliabilityValue == null) ? 0 : initialReliabilityValue.hashCode());
		result = prime * result + ((partNumber == null) ? 0 : partNumber.hashCode());
		result = prime * result + ((size == null) ? 0 : size.hashCode());
		return result;
	}
	
	
}
